import request from '@/utils/request'


//动态通过SQL取多选项值
export function select4column(_url, columnName) {
  //console.log(url)
  return request({
    url: _url, // '/core/coding/a2dept/select4column',
    method: 'GET',
    params: {columnName:columnName}
  })
}

// 动态通过数据字典取值
export function select4enums(_url, params) {
  let url = '/core/enum/getData4AddBy'
  if (_url !== undefined && _url !== '') {
    url = _url
  }
  return request({
    url: url,
    method: 'GET',
    params
  })
}
